<?php

class Controller_Home extends Controller_Template {

	public function actionIndex() {
		$this->addStyle('/styles/jquerytools/overlay.css');
		$this->addStyle('/styles/jquerytools/gallery.css');
		$this->addScript('/scripts/jquerytools/jquery.tools.min.js');
		$this->addScript('/scripts/plugin/gallery.js');
		
		$this->template->title = "HOME-" . $this->settings['title'];
		$this->template->content = new View('home/index');
		
		$itemId = 507;
		$item = Model::factory('directory')->getItem($itemId, 'home');
		$this->template->content->item = $item;
		
		$images = Model::factory('directory')->getImagesByItem('home');
		$this->template->content->images = $images;
	}

}